package com.aaa.sso.service;

import com.aaa.common.bo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @fileName:RemoteUserService
 * @description:
 * @author:忆尘
 * @createTime:2020/11/13 16:19
 * @version:1.0.0
 */

@FeignClient("powerService")
public interface RemoteUserService {
    /**
     * 根据用户名密码查询用户信息
     * 远程调用 传参数是都需要RequestParam，调用的远程方法也需要用RequestParam
     * @param userName
     * @return
     */
    @GetMapping("/user/queryUserByParam")
    User queryUserByParam(@RequestParam("userName") String userName);
}
